import DataList from './dataJson.json';

interface DataItem {
    id:number,
    label:string
}

interface DataMaps {
    body:Array<DataItem>,
    children:Array<DataItem>,
    drinking:Array<DataItem>,
    education:Array<DataItem>,
    ethnicity:Array<DataItem>,
    gender:Array<DataItem>,
    height:Array<DataItem>,
    income:Array<DataItem>,
    occupation:Array<DataItem>,
    relationship:Array<DataItem>,
    smoking:Array<DataItem>
}



const _copy = (data: object) => (
    JSON.parse(JSON.stringify(data))
)

export default DataList as DataMaps;

export const copy = _copy;
